export type GeobaseLogoProps = {
  style?: React.CSSProperties;
  iconColor?: string;
  textColor?: string;
};

export default function GeobaseLogo({
  style = {},
  iconColor = "#38996C",
}: GeobaseLogoProps) {
  return (
    <div
      style={{
        display: "flex",
        alignItems: "center",
        justifyContent: "center",
      }}
    >
      <svg
        viewBox="0 0 122 27"
        fill="none"
        xmlns="http://www.w3.org/2000/svg"
        style={style}
      >
        <path
          d="M38.5812 21.8864C37.6991 21.8864 36.9427 21.7649 36.312 21.522C35.6856 21.2834 35.187 20.9574 34.8163 20.544C34.4455 20.1307 34.2048 19.6662 34.094 19.1506L36.6124 18.8118C36.6891 19.0078 36.8106 19.1911 36.9768 19.3615C37.143 19.532 37.3624 19.6683 37.6352 19.7706C37.9122 19.8771 38.2488 19.9304 38.6451 19.9304C39.2374 19.9304 39.7254 19.7855 40.1089 19.4957C40.4967 19.2102 40.6906 18.7308 40.6906 18.0575V16.2614H40.5755C40.4562 16.5341 40.2772 16.7919 40.0386 17.0348C39.7999 17.2777 39.4931 17.4759 39.1181 17.6293C38.7431 17.7827 38.2957 17.8594 37.7758 17.8594C37.0386 17.8594 36.3674 17.6889 35.7623 17.348C35.1614 17.0028 34.682 16.4766 34.3241 15.7692C33.9704 15.0575 33.7936 14.1584 33.7936 13.0717C33.7936 11.9595 33.9747 11.0305 34.3369 10.2848C34.6991 9.53906 35.1806 8.98082 35.7815 8.61009C36.3866 8.23935 37.0492 8.05398 37.7694 8.05398C38.3191 8.05398 38.7793 8.14773 39.1501 8.33523C39.5208 8.51847 39.8191 8.74858 40.045 9.02557C40.2751 9.2983 40.4519 9.56676 40.5755 9.83097H40.6778V8.18182H43.3816V18.0959C43.3816 18.9311 43.1771 19.63 42.768 20.1925C42.3589 20.755 41.7921 21.1768 41.0677 21.4581C40.3475 21.7436 39.5187 21.8864 38.5812 21.8864ZM38.6387 15.8139C39.0776 15.8139 39.4484 15.7053 39.7509 15.4879C40.0578 15.2663 40.2921 14.951 40.4541 14.5419C40.6203 14.1286 40.7034 13.6342 40.7034 13.0589C40.7034 12.4837 40.6224 11.9851 40.4605 11.5632C40.2985 11.1371 40.0641 10.8068 39.7573 10.5724C39.4505 10.3381 39.0776 10.2209 38.6387 10.2209C38.1913 10.2209 37.8141 10.3423 37.5073 10.5852C37.2005 10.8239 36.9683 11.1562 36.8106 11.5824C36.6529 12.0085 36.5741 12.5007 36.5741 13.0589C36.5741 13.6257 36.6529 14.1158 36.8106 14.5291C36.9725 14.9382 37.2048 15.2557 37.5073 15.4815C37.8141 15.7031 38.1913 15.8139 38.6387 15.8139ZM49.843 18.1918C48.833 18.1918 47.9637 17.9872 47.235 17.5781C46.5106 17.1648 45.9523 16.581 45.5603 15.8267C45.1682 15.0682 44.9722 14.1712 44.9722 13.1357C44.9722 12.1257 45.1682 11.2393 45.5603 10.4766C45.9523 9.71378 46.5042 9.11932 47.2158 8.69318C47.9317 8.26705 48.7712 8.05398 49.7343 8.05398C50.382 8.05398 50.985 8.15838 51.5432 8.36719C52.1057 8.57173 52.5958 8.88068 53.0134 9.29403C53.4353 9.70739 53.7634 10.2273 53.9978 10.8537C54.2322 11.4759 54.3493 12.2045 54.3493 13.0398V13.7876H46.0589V12.1001H51.7861C51.7861 11.7081 51.7009 11.3608 51.5305 11.0582C51.36 10.7557 51.1235 10.5192 50.8209 10.3487C50.5226 10.174 50.1753 10.0866 49.779 10.0866C49.3657 10.0866 48.9992 10.1825 48.6796 10.3743C48.3643 10.5618 48.1171 10.8153 47.9381 11.1349C47.7591 11.4503 47.6675 11.8018 47.6633 12.1896V13.794C47.6633 14.2798 47.7528 14.6996 47.9317 15.0533C48.115 15.407 48.3728 15.6797 48.7052 15.8714C49.0376 16.0632 49.4317 16.1591 49.8877 16.1591C50.1903 16.1591 50.4672 16.1165 50.7187 16.0312C50.9701 15.946 51.1853 15.8182 51.3643 15.6477C51.5432 15.4773 51.6796 15.2685 51.7734 15.0213L54.2918 15.1875C54.164 15.7926 53.9019 16.321 53.5056 16.7727C53.1136 17.2202 52.6064 17.5696 51.9843 17.821C51.3664 18.0682 50.6526 18.1918 49.843 18.1918ZM60.3824 18.1918C59.3895 18.1918 58.5309 17.9808 57.8064 17.5589C57.0863 17.1328 56.5301 16.5405 56.1381 15.782C55.7461 15.0192 55.55 14.1349 55.55 13.1293C55.55 12.1151 55.7461 11.2287 56.1381 10.4702C56.5301 9.70739 57.0863 9.11506 57.8064 8.69318C58.5309 8.26705 59.3895 8.05398 60.3824 8.05398C61.3753 8.05398 62.2318 8.26705 62.952 8.69318C63.6764 9.11506 64.2347 9.70739 64.6267 10.4702C65.0188 11.2287 65.2148 12.1151 65.2148 13.1293C65.2148 14.1349 65.0188 15.0192 64.6267 15.782C64.2347 16.5405 63.6764 17.1328 62.952 17.5589C62.2318 17.9808 61.3753 18.1918 60.3824 18.1918ZM60.3952 16.0824C60.8469 16.0824 61.224 15.9545 61.5266 15.6989C61.8291 15.4389 62.0571 15.0852 62.2105 14.6378C62.3682 14.1903 62.447 13.6811 62.447 13.1101C62.447 12.5391 62.3682 12.0298 62.2105 11.5824C62.0571 11.1349 61.8291 10.7812 61.5266 10.5213C61.224 10.2614 60.8469 10.1314 60.3952 10.1314C59.9392 10.1314 59.5557 10.2614 59.2446 10.5213C58.9378 10.7812 58.7056 11.1349 58.5479 11.5824C58.3945 12.0298 58.3178 12.5391 58.3178 13.1101C58.3178 13.6811 58.3945 14.1903 58.5479 14.6378C58.7056 15.0852 58.9378 15.4389 59.2446 15.6989C59.5557 15.9545 59.9392 16.0824 60.3952 16.0824ZM66.8565 18V4.90909H69.5795V9.83097H69.6626C69.782 9.56676 69.9545 9.2983 70.1804 9.02557C70.4105 8.74858 70.7088 8.51847 71.0753 8.33523C71.446 8.14773 71.9063 8.05398 72.456 8.05398C73.1719 8.05398 73.8324 8.24148 74.4375 8.61648C75.0426 8.98722 75.5263 9.54759 75.8885 10.2976C76.2507 11.0433 76.4318 11.9787 76.4318 13.1037C76.4318 14.1989 76.255 15.1236 75.9013 15.8778C75.5518 16.6278 75.0746 17.1967 74.4695 17.5845C73.8686 17.968 73.1953 18.1598 72.4496 18.1598C71.9212 18.1598 71.4716 18.0724 71.1009 17.8977C70.7344 17.723 70.4339 17.5036 70.1996 17.2393C69.9652 16.9709 69.7862 16.7003 69.6626 16.4276H69.5412V18H66.8565ZM69.522 13.0909C69.522 13.6747 69.603 14.1839 69.7649 14.6186C69.9268 15.0533 70.1612 15.392 70.468 15.6349C70.7749 15.8736 71.1477 15.9929 71.5866 15.9929C72.0298 15.9929 72.4048 15.8714 72.7116 15.6286C73.0185 15.3814 73.2507 15.0405 73.4084 14.6058C73.5703 14.1669 73.6513 13.6619 73.6513 13.0909C73.6513 12.5241 73.5724 12.0256 73.4148 11.5952C73.2571 11.1648 73.0249 10.8281 72.718 10.5852C72.4112 10.3423 72.0341 10.2209 71.5866 10.2209C71.1435 10.2209 70.7685 10.3381 70.4616 10.5724C70.1591 10.8068 69.9268 11.1392 69.7649 11.5696C69.603 12 69.522 12.5071 69.522 13.0909ZM80.8685 18.1854C80.2421 18.1854 79.6838 18.0767 79.1938 17.8594C78.7037 17.6378 78.3159 17.3118 78.0304 16.8814C77.7492 16.4467 77.6085 15.9055 77.6085 15.2578C77.6085 14.7124 77.7087 14.2543 77.909 13.8835C78.1092 13.5128 78.382 13.2145 78.7271 12.9886C79.0723 12.7628 79.4644 12.5923 79.9033 12.4773C80.3465 12.3622 80.8109 12.2812 81.2967 12.2344C81.8678 12.1747 82.328 12.1193 82.6774 12.0682C83.0269 12.0128 83.2804 11.9318 83.4381 11.8253C83.5957 11.7187 83.6746 11.5611 83.6746 11.3523V11.3139C83.6746 10.9091 83.5467 10.5959 83.2911 10.3743C83.0396 10.1527 82.6817 10.0419 82.2172 10.0419C81.7271 10.0419 81.3372 10.1506 81.0475 10.3679C80.7577 10.581 80.5659 10.8494 80.4722 11.1733L77.9537 10.9688C78.0815 10.3722 78.333 9.85653 78.708 9.42188C79.083 8.98295 79.5666 8.64631 80.159 8.41193C80.7555 8.1733 81.4459 8.05398 82.23 8.05398C82.7754 8.05398 83.2975 8.1179 83.796 8.24574C84.2989 8.37358 84.7442 8.57173 85.132 8.8402C85.524 9.10866 85.833 9.45384 86.0588 9.87571C86.2847 10.2933 86.3976 10.794 86.3976 11.3778V18H83.8152V16.6385H83.7385C83.5808 16.9453 83.3699 17.2159 83.1057 17.4503C82.8415 17.6804 82.524 17.8615 82.1533 17.9936C81.7825 18.1214 81.3543 18.1854 80.8685 18.1854ZM81.6483 16.3061C82.0489 16.3061 82.4026 16.2273 82.7094 16.0696C83.0162 15.9077 83.257 15.6903 83.4317 15.4176C83.6064 15.1449 83.6938 14.8359 83.6938 14.4908V13.4489C83.6085 13.5043 83.4913 13.5554 83.3422 13.6023C83.1973 13.6449 83.0332 13.6854 82.85 13.7237C82.6668 13.7578 82.4835 13.7898 82.3003 13.8196C82.1171 13.8452 81.9509 13.8686 81.8017 13.8899C81.4821 13.9368 81.203 14.0114 80.9644 14.1136C80.7257 14.2159 80.5403 14.3544 80.4082 14.5291C80.2761 14.6996 80.2101 14.9126 80.2101 15.1683C80.2101 15.5391 80.3443 15.8224 80.6128 16.0185C80.8855 16.2102 81.2307 16.3061 81.6483 16.3061ZM96.4992 10.9815L94.0063 11.1349C93.9637 10.9219 93.8721 10.7301 93.7314 10.5597C93.5908 10.3849 93.4054 10.2464 93.1753 10.1442C92.9495 10.0376 92.6789 9.98438 92.3635 9.98438C91.9417 9.98438 91.5858 10.0739 91.2961 10.2528C91.0063 10.4276 90.8614 10.6619 90.8614 10.956C90.8614 11.1903 90.9552 11.3885 91.1427 11.5504C91.3302 11.7124 91.6519 11.8423 92.1079 11.9403L93.8849 12.2983C94.8394 12.4943 95.551 12.8097 96.0198 13.2443C96.4885 13.679 96.7229 14.25 96.7229 14.9574C96.7229 15.6009 96.5333 16.1655 96.154 16.6513C95.779 17.1371 95.2634 17.5163 94.6072 17.7891C93.9552 18.0575 93.203 18.1918 92.3508 18.1918C91.051 18.1918 90.0155 17.9212 89.2442 17.38C88.4772 16.8345 88.0276 16.093 87.8955 15.1555L90.5738 15.0149C90.6547 15.4112 90.8508 15.7138 91.1618 15.9226C91.4729 16.1271 91.8714 16.2294 92.3572 16.2294C92.8344 16.2294 93.2179 16.1378 93.5077 15.9545C93.8018 15.767 93.9509 15.5263 93.9552 15.2322C93.9509 14.9851 93.8465 14.7827 93.642 14.625C93.4374 14.4631 93.1221 14.3395 92.6959 14.2543L90.9956 13.9155C90.0368 13.7237 89.3231 13.3913 88.8543 12.9183C88.3898 12.4453 88.1576 11.8423 88.1576 11.1094C88.1576 10.4787 88.328 9.93537 88.6689 9.4794C89.0141 9.02344 89.4978 8.67188 90.1199 8.42472C90.7464 8.17756 91.4793 8.05398 92.3188 8.05398C93.5589 8.05398 94.5347 8.31605 95.2464 8.8402C95.9623 9.36435 96.3799 10.0781 96.4992 10.9815ZM102.732 18.1918C101.722 18.1918 100.853 17.9872 100.124 17.5781C99.3996 17.1648 98.8414 16.581 98.4493 15.8267C98.0573 15.0682 97.8613 14.1712 97.8613 13.1357C97.8613 12.1257 98.0573 11.2393 98.4493 10.4766C98.8414 9.71378 99.3932 9.11932 100.105 8.69318C100.821 8.26705 101.66 8.05398 102.623 8.05398C103.271 8.05398 103.874 8.15838 104.432 8.36719C104.995 8.57173 105.485 8.88068 105.902 9.29403C106.324 9.70739 106.652 10.2273 106.887 10.8537C107.121 11.4759 107.238 12.2045 107.238 13.0398V13.7876H98.9479V12.1001H104.675C104.675 11.7081 104.59 11.3608 104.42 11.0582C104.249 10.7557 104.013 10.5192 103.71 10.3487C103.412 10.174 103.064 10.0866 102.668 10.0866C102.255 10.0866 101.888 10.1825 101.569 10.3743C101.253 10.5618 101.006 10.8153 100.827 11.1349C100.648 11.4503 100.557 11.8018 100.552 12.1896V13.794C100.552 14.2798 100.642 14.6996 100.821 15.0533C101.004 15.407 101.262 15.6797 101.594 15.8714C101.927 16.0632 102.321 16.1591 102.777 16.1591C103.079 16.1591 103.356 16.1165 103.608 16.0312C103.859 15.946 104.074 15.8182 104.253 15.6477C104.432 15.4773 104.569 15.2685 104.662 15.0213L107.181 15.1875C107.053 15.7926 106.791 16.321 106.395 16.7727C106.003 17.2202 105.496 17.5696 104.873 17.821C104.255 18.0682 103.542 18.1918 102.732 18.1918Z"
          fill="currentColor"
        />
        <path
          d="M0.513153 6.57762C1.46369 7.161 2.94207 7.65213 4.94829 8.05103C7.24505 8.5077 9.65027 8.73604 12.1639 8.73604C14.5127 8.73604 16.814 8.52113 19.068 8.09133C21.1267 7.69873 22.7121 7.20154 23.8243 6.59978C23.7806 6.45323 23.7342 6.30784 23.6851 6.16367C22.6176 5.58579 21.0808 5.0956 19.0749 4.69308C16.7723 4.23103 14.4687 4 12.1642 4C9.8404 4 7.48088 4.22655 5.08559 4.67966C3.13314 5.04899 1.67538 5.48019 0.71231 5.97328C0.640829 6.17238 0.574392 6.37387 0.513153 6.57762Z"
          fill={iconColor}
        />
        <path
          d="M0.103892 8.48764C0.0353584 9.01028 0 9.54337 0 10.0847C0 11.1207 0.129487 12.1264 0.373158 13.0865C1.10344 13.4852 1.85983 13.8377 2.64231 14.144C3.58861 14.5145 4.57976 14.8206 5.61576 15.0624C6.65176 15.3041 7.71034 15.4935 8.7915 15.6305C9.87269 15.7675 10.9973 15.836 12.1654 15.836C13.2872 15.836 14.4245 15.772 15.5776 15.644C16.7306 15.5159 17.8459 15.3252 18.9236 15.0718C20.0014 14.8184 21.0014 14.5023 21.9238 14.1235C22.6576 13.8222 23.3327 13.4877 23.9491 13.1202C24.1983 12.1499 24.3308 11.1328 24.3308 10.0847C24.3308 9.54249 24.2954 9.00856 24.2266 8.48511C23.4723 8.82341 22.6501 9.12862 21.7601 9.40074C20.7962 9.69544 19.7779 9.94443 18.7053 10.1477C17.6326 10.3511 16.5323 10.501 15.4044 10.5977C14.2764 10.6944 13.1893 10.7427 12.1429 10.7427C10.9899 10.7427 9.85604 10.6899 8.7412 10.5843C7.62638 10.4787 6.54517 10.3242 5.49758 10.1209C4.44998 9.91758 3.44991 9.67176 2.49737 9.38341C1.6211 9.11818 0.823274 8.81959 0.103892 8.48764Z"
          fill={iconColor}
        />
        <path
          d="M22.7425 16.0991C22.3794 16.2266 22.0067 16.3493 21.6245 16.4671C20.6305 16.7734 19.5896 17.0282 18.5019 17.2316C17.4142 17.4349 16.329 17.5907 15.2462 17.699C14.1635 17.8073 13.129 17.8614 12.1429 17.8614C11.1105 17.8614 10.0971 17.8086 9.10276 17.703C8.10846 17.5974 7.09505 17.4487 6.06252 17.2571C5.02998 17.0654 3.99978 16.8196 2.97192 16.5196C2.50407 16.3831 2.03825 16.2347 1.57448 16.0746C3.66443 19.7619 7.62437 22.25 12.1654 22.25C16.6964 22.25 20.6489 19.7729 22.7425 16.0991Z"
          fill={iconColor}
        />
      </svg>
      <div
        style={{
          color: "currentcolor",
          textTransform: "uppercase",
          fontSize: "0.7rem",
          fontWeight: 600,
          opacity: 0.7,
          transform: "translate(-8px, -5px)",
        }}
      >
        Docs
      </div>
    </div>
  );
}
